using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableWorldBossDailyDao:DaoBase<TableWorldBossDaily>
    {
        public override void AddPrimaryIndex(TableWorldBossDaily model)
        {
            cachePrimary[model.DailyId.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableWorldBossDaily.txt";
        }

        protected override TableWorldBossDaily ParseRowData(string[] rowData)
        {
            TableWorldBossDaily data = new TableWorldBossDaily();

            if (string.IsNullOrEmpty(rowData[0]))
            {
                data.DailyId = 0;
            }
            else
            {
                data.DailyId = int.Parse(rowData[0]);
            }
			data.worldBossScene = rowData [1];
			data.bornPos = rowData [2];

            return data;
        }



    }

}
